package com.g4.shoppingback.mapper;


import com.g4.shoppingback.common.TextVo;
import com.g4.shoppingback.pojo.DdProductInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
* <p>
    * 商品表 Mapper 接口
    * </p>
*
* @author admin
* @since 2022-02-19
*/
@Mapper
public interface DdProductInfoMapper extends BaseMapper<DdProductInfo> {

    void deleteAll(Integer id);

    void setSta(@Param("id") Integer id, @Param("saleState") Integer saleState);

    Long selectTotal(@Param("query") String query);

    List<TextVo> selectByQuery(@Param("query") String query,
                               @Param("pageStart") Integer pageStart,
                               @Param("pageSize") Integer pageSize
                               );
}
